'use strict';

export default class extends think.service.base {
    /**
     * init
     * @return {}         []
     */
    init() {
        this.baiduModel = {
            'Host': 'sms.bj.baidubce.com',
        }
        this.baseurl = "https://sms.bj.baidubce.com/bce/v2/message";
        this.model = {
            "invokeId": "d2iL60UT-7N8-22368",
            "phoneNumber": "18573042760",
            "templateCode": "smsTpl:6nHdNumZ4ZtGaKO"
        };
        this.baiduApi = "https://" + this.baseurl + this.url;
        this.ak = 'e5c992c7e1ef4136890e2401a8740b6e';
        this.sk = 'bd2f70e871d543ed81d43859afdaaccf';
        let d = new Date();
        this.authStringPrefix = 'bce-auth-v1/' + this.ak + '/' + d.toISOString() + '/' + '1800';
    }
    get(name) {
        return this[name];
    }
    set(name, value) {
        this[name] = value;
    }
}
